package com.cyan.note.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * 基础安全配置
 * 只提供必要的Bean，不配置完整的Security
 * 
 * @author ZhangzhenYu
 * @since 2025-01-14
 */
@Configuration
public class SecurityBaseConfig {
    
    /**
     * 密码编码器
     */
    @Bean
    public PasswordEncoder passwordEncoder() {
        return new BCryptPasswordEncoder();
    }
}